package com.sdp.irrigation.task;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.sdp.core.bizc.redis.RedisUtil;
import com.sdp.right.cron.ScheduledOfTask;
import com.sdp.right.websocket.dto.MessageInfo;
import com.sdp.right.websocket.server.MessageWebsocketServer;

@Component
public class RealTimeTask implements ScheduledOfTask{
	
	@Autowired
	private MessageWebsocketServer messageWebsocketServer;
	
	@Autowired
	private RedisUtil redisUtil;


	@Override
	public void execute() {
		MessageInfo messageInfo = null;
		Map<String, Map<String, String>> empClientIdMap = MessageWebsocketServer.getEmpClientIdMap();
		if(empClientIdMap==null || empClientIdMap.size()==0) {
			return;
		}
		
		//根据人员查询可看到的设备和阀门实时信息
		
	}

}
